package com.hmall.common.client;


import com.hmall.common.dto.ItemDto;
import com.hmall.common.dto.PageResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;


@FeignClient("itemservice")
public interface ItemFeignClient {
    /**
     * 定义分页查询方法接口暴露
     * @param page
     * @param size
     * @return
     */
    @GetMapping("/item/list")
    public PageResult<ItemDto> list(@RequestParam("page") Integer page, @RequestParam("size") Integer size);
}
